Skip to content

Conversation

erikhfj
Copy link
Member

@erikhfj erikhfj commented Nov 18, 2026

Closes #97

What was done

  • Added a Shared context and prompting section to docs/AI-USAGE.md explaining how AGENTS.md, schema.graphql, and docs/ specifications are used as shared context/harness across AI tools and how tasks are scoped and verified against the test/lint/typecheck gates.
  • Logged the recent #93 and #97 rows in docs/AI-USAGE.md.
  • Updated README.md milestone status (M4 delivered, final polish before 27 November) and refreshed the production Bundle size table to match a current pnpm build measurement (17 November 2026), including the CratePage and AlbumCover chunks.

What was tested

  • pnpm build (to measure exact production chunk sizes).
  • pnpm format:check && pnpm lint && pnpm typecheck && pnpm test — passed (client: 20 test files / 202 tests passed; server: 8 unit test files / 81 tests passed, 5 PostgreSQL-backed files / 56 tests skipped locally with TEST_DATABASE_URL unset).

@erikhfj erikhfj force-pushed the docs/97-ai-prompting-and-readme-sync branch from c0d2d23 to 6584344 Compare November 20, 2026 20:38
Copy link
Member

@evenkkl evenkkl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few things before merge:

Bundle sizes are from 17 Nov, but #100, #101 and #103 changed the client after that. Could you rebase, run pnpm build again and update the table?
AlbumCover is loaded on the first page (App → ResultsLayout → AlbumCard), not lazily. So index went from 430 to 385 kB only because code moved into that chunk, and the first load is still about 438 kB. Worth saying under the table.
AGENTS.md still says "M3 – Functional beta". Could you update it to match the README?
Small one: the tool list in the new section is missing ChatGPT and Figma Make, which also appear in the log.

@erikhfj
Copy link
Member Author

erikhfj commented Nov 22, 2026

Addressed all four points:

  1. Merged main (including Avoid exposing user identity IDs in reviews and improve author display #100, Add show more/less functionality to artist country filters #101, Fix search history error appearing when dropdown is closed #103), re-ran pnpm build, and updated the README.md bundle size table for 22 November 2026.
  2. Clarified below the table that AlbumCover is loaded eagerly on the initial Discover page (App → ResultsLayout → AlbumCard), so the first-page JS payload is index + AlbumCover + rolldown-runtime (438.86 kB raw / 132.61 kB gzip).
  3. Updated AGENTS.md status from M3 – Functional beta to M4 delivered – final polish to match README.md.
  4. Added ChatGPT and Figma Make to the tool list in docs/AI-USAGE.md.

Verified with pnpm format:check && pnpm lint && pnpm typecheck && pnpm test && pnpm build. Ready for re-review!

robertky
robertky previously approved these changes Nov 23, 2026
Copy link
Member

@robertky robertky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for addressing the review feedback. The bundle-size table now reflects a fresh build, and the explanation clearly distinguishes the eagerly loaded AlbumCover chunk from the lazy-loaded route chunks. The milestone status is consistent between AGENTS.md and README.md, and the AI tool list is complete. CI passes, including the PostgreSQL integration tests. Approved.

evenkkl
evenkkl previously approved these changes Nov 23, 2026
Copy link
Member

@evenkkl evenkkl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@robertky robertky dismissed stale reviews from evenkkl and themself via 3dfece2 November 24, 2026 16:07
Copy link
Member

@robertky robertky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. The shared-context section clearly explains how issues, repository documentation, and verification commands guided the AI-assisted work. The README now reflects a production build against current main, distinguishes the eager AlbumCover chunk from the lazy route chunks, and gives the correct first-page payload total (446.39 kB raw / 133.79 kB gzip). The milestone status and AI tool list are also consistent. pnpm build, pnpm format:check, and CI—including PostgreSQL integration tests—pass. Ready to merge.

@robertky robertky merged commit 34aa8a1 into main Nov 24, 2026
3 checks passed
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document how AGENTS.md and specs were used in AI prompts
3 participants